package com.csdj.questions.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author 刘宇
 * @since 2022-03-02
 */
@TableName("t_users")
public class TUsers implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 表id
     */
    @TableId(value = "Id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户Id
     */
    private String userId;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 密码
     */
    private String password;

    /**
     * 姓名
     */
    private String name;

    /**
     * 性别(1为男，0为女)
     */
    private String gender;

    /**
     * 头像
     */
    private String photo;

    /**
     * 一句话简介
     */
    private String autograph;

    /**
     * 个人简介
     */
    private String introduce;

    /**
     * 隐私保护（1是/0否）
     */
    private String privacyProtection;

    /**
     * 赞次数
     */
    private Integer praiseNumb;

    /**
     * 感谢次数
     */
    private Integer thankNumb;

    /**
     * 提问次数
     */
    private Integer questionNumb;

    /**
     * 回答次数
     */
    private Integer answerNumb;

    /**
     * 收藏次数
     */
    private Integer collectNumb;

    /**
     * 编辑次数
     */
    private Integer editNumb;

    /**
     * 关注的人(数量)
     */
    private Integer attentionNumb;

    /**
     * 关注该用户的人(数量)
     */
    private Integer followerNumb;

    /**
     * 关注话题个数
     */
    private Integer concernTopicNumb;

    /**
     * 个性网址
     */
    private String personalityUrl;

    /**
     * 职位（公司和职位显示的时候用· 隔开）
     */
    private String position;

    /**
     * 学校（学校和专业方向显示的时候用· 隔开）
     */
    private String school;

    /**
     * 专业方向（学校和专业方向显示的时候用· 隔开）
     */
    private String major;

    /**
     * 邮箱激活(1.是，0否)
     */
    private String emailActivate;

    /**
     * 禁用状态（1是，0否）
     */
    private String status;

    /**
     * 禁用时间
     */
    private LocalDate forbiddenTime;

    /**
     * 角色（1管理员，2次要管理员，3用户）
     */
    private String role;

    /**
     * 创建时间
     */
    private LocalDate createTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }
    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }
    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }
    public String getAutograph() {
        return autograph;
    }

    public void setAutograph(String autograph) {
        this.autograph = autograph;
    }
    public String getIntroduce() {
        return introduce;
    }

    public void setIntroduce(String introduce) {
        this.introduce = introduce;
    }
    public String getPrivacyProtection() {
        return privacyProtection;
    }

    public void setPrivacyProtection(String privacyProtection) {
        this.privacyProtection = privacyProtection;
    }
    public Integer getPraiseNumb() {
        return praiseNumb;
    }

    public void setPraiseNumb(Integer praiseNumb) {
        this.praiseNumb = praiseNumb;
    }
    public Integer getThankNumb() {
        return thankNumb;
    }

    public void setThankNumb(Integer thankNumb) {
        this.thankNumb = thankNumb;
    }
    public Integer getQuestionNumb() {
        return questionNumb;
    }

    public void setQuestionNumb(Integer questionNumb) {
        this.questionNumb = questionNumb;
    }
    public Integer getAnswerNumb() {
        return answerNumb;
    }

    public void setAnswerNumb(Integer answerNumb) {
        this.answerNumb = answerNumb;
    }
    public Integer getCollectNumb() {
        return collectNumb;
    }

    public void setCollectNumb(Integer collectNumb) {
        this.collectNumb = collectNumb;
    }
    public Integer getEditNumb() {
        return editNumb;
    }

    public void setEditNumb(Integer editNumb) {
        this.editNumb = editNumb;
    }
    public Integer getAttentionNumb() {
        return attentionNumb;
    }

    public void setAttentionNumb(Integer attentionNumb) {
        this.attentionNumb = attentionNumb;
    }
    public Integer getFollowerNumb() {
        return followerNumb;
    }

    public void setFollowerNumb(Integer followerNumb) {
        this.followerNumb = followerNumb;
    }
    public Integer getConcernTopicNumb() {
        return concernTopicNumb;
    }

    public void setConcernTopicNumb(Integer concernTopicNumb) {
        this.concernTopicNumb = concernTopicNumb;
    }
    public String getPersonalityUrl() {
        return personalityUrl;
    }

    public void setPersonalityUrl(String personalityUrl) {
        this.personalityUrl = personalityUrl;
    }
    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }
    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }
    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }
    public String getEmailActivate() {
        return emailActivate;
    }

    public void setEmailActivate(String emailActivate) {
        this.emailActivate = emailActivate;
    }
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
    public LocalDate getForbiddenTime() {
        return forbiddenTime;
    }

    public void setForbiddenTime(LocalDate forbiddenTime) {
        this.forbiddenTime = forbiddenTime;
    }
    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }
    public LocalDate getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDate createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "TUsers{" +
            "id=" + id +
            ", userId=" + userId +
            ", email=" + email +
            ", password=" + password +
            ", name=" + name +
            ", gender=" + gender +
            ", photo=" + photo +
            ", autograph=" + autograph +
            ", introduce=" + introduce +
            ", privacyProtection=" + privacyProtection +
            ", praiseNumb=" + praiseNumb +
            ", thankNumb=" + thankNumb +
            ", questionNumb=" + questionNumb +
            ", answerNumb=" + answerNumb +
            ", collectNumb=" + collectNumb +
            ", editNumb=" + editNumb +
            ", attentionNumb=" + attentionNumb +
            ", followerNumb=" + followerNumb +
            ", concernTopicNumb=" + concernTopicNumb +
            ", personalityUrl=" + personalityUrl +
            ", position=" + position +
            ", school=" + school +
            ", major=" + major +
            ", emailActivate=" + emailActivate +
            ", status=" + status +
            ", forbiddenTime=" + forbiddenTime +
            ", role=" + role +
            ", createTime=" + createTime +
        "}";
    }
}
